package com.coocaa.x.demo.servlets.data;


import com.coocaa.x.framework.data.JObject;

import java.util.List;

/**
 * Created by admin on 2015/9/9.
 */
public class ParserData {

    public static class CategoryObject extends JObject {
        public List<CategoryItem> data;

        public static class CategoryItem extends JObject {
            public String categoryName;
            public String categoryThumb;
            public int categoryId;
        }
    }

    public static class SubCategoryObject extends JObject {
        public List<SubCategoryItem> data;

        public static class SubCategoryItem extends JObject {
            public String subcategoryName;
            public String subcategoryType;
            public List<FiltersItem> subcategoryFilters;

            public static class FiltersItem extends JObject {
                public String filterValue;
                public String filterName;
            }
        }
    }

    public static class VideoListObject extends JObject{
        public List<VideoItem> data;

        public static class VideoItem extends JObject{
            public String videoId ;
            public boolean isFree;
            public int categoryId;
            public String videoName;
            public String posterUrl;
            public String episodeEpisodeUrl;
        }
    }

    public static class VideoDetailObject extends JObject{
        public VideoDetail data;

        public static class VideoDetail extends JObject{
            public String actors;
            public String area;
            public int categoryId;
            public String categoryName;
            public int currentEpisode;
            public String description;
            public String directors;
            public String episodeUrlList;
            public String posterUrl;
            public String score;
            public int totalEpisodes;
            public String videoId;
            public String videoName;
            public String year;
        }
    }

    public static class VideoSearch extends JObject{
        public List<VideoSearchList> data;

        public static class VideoSearchList extends JObject{
            public String actors;
            public int categoryId;
            public String categoryName;
            public List<FromItem> fromList;
            public String posterUrl;
            public String score;
            public int totalEpisodes;
            public String videoId;
            public String videoName;

            public static class FromItem extends JObject{
                public String firstUrl;
                public String fromImageUrl;
                public String fromName;
                public String fromSite;
            }
        }
    }

    public static class AppCategory extends JObject{
        public List<AppCategoryItem> data;

        public static class AppCategoryItem extends JObject{
            public String sortId;
            public String sortName;
            public String imgurl;
            public String flag;
            public String single;
            public String showCount;
            public String appCount;
            public String updateTime;
            public List<SubSortItem> subSorts;

            public static class SubSortItem extends JObject
            {
                public String sortId;
                public String sortName;
                public String imgurl;
                public String flag;
                public String single;
                public String showCount;
                public String appCount;
                public String updateTime;
            }
        }
    }

    public static class AppListObject extends JObject{
        public int count;
        public List<AppListItem> data;

        public static class AppListItem extends JObject{
            public String id;
            public String name;
            public String lmg;
            public String apk;
            public String downloads;
            public String softwaresize;
            public String updatetime;
            public String packagename;
            public String version;
            public String superscript;
        }
    }

    public static class AppSearchListObject extends JObject{
        public int count;
        public List<AppSearchItem> list;

        public static class AppSearchItem extends JObject{
            public String id;
            public String name;
            public String lmg;
            public String downloads;
            public String softwaresize;
            public String packagename;
        }
    }

    public static class AppDetailObject extends JObject{
        public AppDetailItem details;

        public static class AppDetailItem extends JObject{
            public String id;
            public String packageName;
            public String versionCode;
            public String iconUrl;
            public String title;
            public String infoList;
            public String conUpdate;
            public String introduction;
            public String updateInfo;
            public String superscript;

            public String[] screenShotsPreview;
            public String[] screenShots;
            public String[] screenShotsBig;

        }
    }
}
